/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-04-29
 * Time: 22:59
 */
public class Main {
    public static int func(int num){
        if(num==1){
            return num;
        }
        else{
            return num*func(num-1);
        }
    }
    public static void main(String[] args) {
        System.out.println(func(5));
    }
}
